@import "style/theme.less";

.index-section {
  background-color: #FBFBFD;

  .index-header {
    background-color: @headerBgColor;
    color: #fff;
    padding: 18px 0px 14px 0px;
    position: relative;
    height: 85px;
    display: flex;
    flex-direction: row;

    .coffee-icon {
      width: 45px;
      height: 45px;
      margin-right: 24px;
    }

    .user-name-section {
      font-size: 22px;
      margin-bottom: 8px;
      padding-left: 26px;
    }

    // .date-info {
    //   font-size: 16px;
    //   line-height: 1;
    //   text-align: center;
    // }

    .week-date {
      margin-right: 8px;
    }
  }

  .index-body {
    padding: @body-spacing;
    margin-top: 70px;
  }

  .teamwork,
  .overview {
    margin-bottom: 20px;
  }

  .teamwork-list {
    :global {
      .adm-list-body {
        border-radius: @border-radius-base;
      }
    }
  }

  .actions-ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #fff;
    padding: 14px 12px;
    border-radius: @border-radius-base;
    flex-wrap: wrap;

    .action-item {
      text-align: center;
      cursor: pointer;

      &.customer-action-item {
        .action-item-icon-wrap {
          background-color: #F0BF42;
        }
      }

      &.group-action-item {
        .action-item-icon-wrap {
          background-color: @blue;
        }
      }

      &.circle-action-item {
        .action-item-icon-wrap {
          background-color: #57A65B;
        }
      }

      &.follow-action-item {
        .action-item-icon-wrap {
          background-color: #DD4377;
        }
      }

      &.product-action-item {
        .action-item-icon-wrap {
          background-color: @green;
        }
      }

      &.opp-action-item {
        .action-item-icon-wrap {
          background-color: @red;
        }
      }

      &.order-action-item {
        .action-item-icon-wrap {
          background-color: @blue;
        }
      }
    }

    .action-item-icon-wrap {
      width: 60px;
      height: 60px;
      border-radius: 10px;

      display: inline-block;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 5px;
    }

    .action-item-icon {
      width: 32px;
      height: 32px;

    }

    .action-item-name {
      font-size: 12px;
      line-height: 12px;
      color: @heading-color;
    }
  }
}

.customer-stat-section {
  background-color: #fff;
  padding: 0px 12px;
  border-radius: @border-radius-base;

  .stat-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d9d9d9;
    padding: 14px 0px 20px 0px;
  }

  .stat-title {
    color: #000;
    font-size: 28px;
    line-height: 28px;
  }

  .stat-count {
    color: @primary-color;
    font-size: 28px;
    font-weight: 600;
  }

  .stat-section-body {
    display: flex;
    padding: 30px 0px 24px 0px;

    .stat-item {
      div {
        display: inline-block;
        text-align: center;
      }

      .stat-item-count {
        font-size: 24px;
        line-height: 24px;
        margin-bottom: 22px;
        font-weight: 600;
      }

      .stat-item-name {
        color: @text-color-secondary;
      }
    }

    .stat-increase-item {
      flex: 1;

      .stat-item-count {
        color: #57A65B;
      }
    }

    .stat-decrease-item {
      .stat-item-count {
        color: #F0BF42;
      }
    }
  }
}

.stat-section {
  padding: 8px;

  .stat-section-header {
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #000;
  }
}

.market-section {
  margin-bottom: 12px;
}

.sale-section {
  // margin-bottom: 12px;
}

.user-profile-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
  height: 70px;
  top: 50px;
  position: absolute;

  .user-profile {

    .user-avatar {
      height: 60px;
      width: 60px;
      margin-bottom: 8px;

      img {
        height: 100%;
        width: 100%;
        border-radius: 9999px;
        border: 2px solid #3081dd;
      }
    }

    .user-name {
      color: #000;
      font-size: 1rem;
      text-align: center;
      font-weight: 600;
    }

    .user-department {
      color: #888888;
      font-size: 0.7rem;
      text-align: center;
    }
  }

  .other-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 16px;

    .date-info {
      margin-top: 8px;
      font-size: 1rem;
      font-weight: 500;
    }

    .sales-goal {
      margin-top: 12px;
      color: #000;
    }
  }

}

.panel {
  display: flex;
  width: 100%;
  border-radius: 8px;
  flex-direction: column;
  padding: 8px;

  .panel-title {
    font-size: 1rem;
    color: #000;
    font-weight: 500;

    .title-description {
      color: #888888;
      font-size: 0.7rem;
      font-weight: 300;
      line-height: 2rem;
    }
  }
}

.bg-blue {
  background-color: rgba(58, 117, 197, 0.3);
}

.bg-pink {
  background-color: rgba(253, 75, 171, 0.3);
}

.bg-green {
  background-color: rgba(87, 166, 91, 0.3);
}

.bg-yellow {
  background-color: rgba(240, 191, 66, 0.3);
}

.overview-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;

  .overview-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 8px;
    padding-bottom: 8px;
    color: #000;

    .index-name {
      display: flex;
      flex-direction: row;




      .index-text {
        padding-left: 16px;
        font-size: 1.2rem;
        text-align: right;
        flex: 1;
        font-weight: 500;
      }
    }

    .index-value {
      font-size: 0.8rem;
    }

  }
}

.description {
  font-size: 0.9rem;
  margin-right: 8px;

  .property {
    color: #888888
  }

  .value {
    margin-left: 4px;
    font-weight: 500;
    color: #000;
  }
}